<?php
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use frontend\assets\AppAsset;
use frontend\widgets\Alert;

/* @var $this \yii\web\View */
/* @var $content string */

AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta name="viewport" content="width=1200">
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
</head>
<body class="resume_page">
    <?php $this->beginBody() ?>
    <div class="main_wrap">

        <div class="header">
            <div class="header_inner cf">
                <div class="left ls">
                    <div class="logo">
                        <img src="/assets/images/logo.png" />
                    </div>
                </div>
                <div class="right rs">
                    <div class="headerinfo">
                        <ul class="userinfo cf">
                            <li><a id="aboutus" class="aboutus">关于厉嗨</a></li>
                            <?php if (Yii::$app->user->isGuest) { ?>
                            <li><a id="login" class="login fancybtn">登录</a></li>
                            <li><a id="regist" class="regist fancybtn">注册</a></li>
                            <?php  } else { ?>
                            <li><a id="logout" href="/user/logout">退出</a></li>
                            <li><a id="share" class=""><?= Yii::$app->user->identity->username  ?></a></li>
                            <?php } ?>
                            <li><a id="share" class="share fancybtn">分享</a></li>
                        </ul>
                        <ul class="shareinfo">
                            <li><a id="weibo" class="weibo"></a></li>
                            <li><a id="tencent" class="tencent"></a></li>
                            <li><a id="qq" class="qq"></a></li>
                            <li><a id="douban" class="douban"></a></li>
                        </ul>
                        <div class="act"></div>
                    </div>
                </div>
            </div>
        </div>
        <?= Breadcrumbs::widget([
            'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
        ]) ?>
        <?= Alert::widget() ?>
        <?= $content ?>
    </div>
    <?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
